public class doy02 {

    public static void main(String[] args) {
        int [][]arr={{6,10,12,15},{3,8,5,8}};

        int a =0,count=0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                a=arr[0][j]*arr[1][j];
               count++;


               if (count<5){
                System.out.println(a);
            }else {
               break;
                       }
            }
        }


    }
}
